<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/8 0008
 * Time: 上午 9:52
 */


use yii\helpers\Html;
use yii\widgets\LinkPager;
use yii\grid\GridView;

/**
 * @var yii\web\View $this
 * @var amnah\yii2\user\Module $module
 * @var array $actions
 */
global $regionTypes2;
global $prodAttrCodes;
$regionTypes2 = $regionTypes;
$module = $this->context->module;

$this->title = Yii::t('user', 'Yii 2 User');
?>


<?php

$i = 0;
$row = [];




$row[$i]['md']     = 3;
$row[$i]['bg']     = 'aqua';
if($dataProvider){
    $row[$i]['num']    = $orderCounts['monthOrderCount1'] ;
}else{
    $row[$i]['num']    = 0 ;
}

$row[$i]['text']   = '本月跟进中';
$row[$i]['ion']    = '';
$row[$i]['unit']   = '个';
if ($authority)
{
    $time=date("Y-m-d H:i:s",mktime(0, 0 , 0,date("m"),1,date("Y")));
    if ($model_mng->grade==1)
    {
        $row[$i]['a']   = 'followsupermanger-self?object_type_id=1&state=30001&time='.$time;

    }
    elseif($model_mng->grade==2){
        $row[$i]['a']   = 'followmanger-self?object_type_id=1&state=30001&time='.$time;
    }
}else{
    $row[$i]['a']   = 'follow-self?object_type_id=1&state=30001&time='.$time;
}
    $i++;



$row[$i]['md']     = 3;
$row[$i]['bg']     = 'aqua';
$row[$i]['num']    = $orderCounts['weekOrderCount1']  ;
$row[$i]['text']   = '本周跟进中';
$row[$i]['ion']    = '';
$row[$i]['unit']   = '个';
if ($authority)
{
    $time=date("Y-m-d H:i:s",mktime(0, 0 , 0,date("m"),date("d")-date("w"),date("Y")));
    if ($model_mng->grade==1)
    {
        $row[$i]['a']   = 'followsupermanger-self?object_type_id=1&state=30001&time='.$time;

    }
    elseif($model_mng->grade==2){
        $row[$i]['a']   = 'followmanger-self?object_type_id=1&state=30001&time='.$time;
    }
}else{
    $row[$i]['a']   = 'follow-self?object_type_id=1&state=30001&time='.$time;
}
    $i++;

$row[$i]['md']     = 3;
$row[$i]['bg']     = 'green';
$row[$i]['num']    = $orderCounts['monthOrderCountOk'] ;
$row[$i]['text']   = '本月成交';
$row[$i]['ion']    = '';
$row[$i]['unit']   = '个';
if ($authority)
{
    $time=date("Y-m-d H:i:s",mktime(0, 0 , 0,date("m"),1,date("Y")));
    if ($model_mng->grade==1)
    {
        $row[$i]['a']   = 'followsupermanger-self?object_type_id=1&state=30002&time='.$time;

    }
    elseif($model_mng->grade==2){
        $row[$i]['a']   = 'followmanger-self?object_type_id=1&state=30002&time='.$time;
    }

}else{
    $row[$i]['a']   = 'follow-self?object_type_id=1&state=30002&time='.$time;
}
$i++;



$row[$i]['md']     = 3;
$row[$i]['bg']     = 'red';
$row[$i]['num']    = $orderCounts['outOrderCount1'];
$row[$i]['text']   = '3日未反馈';
$row[$i]['ion']    = '';
$row[$i]['unit']   = '个';




echo app\common\TBAdminLte::widget('col', $row);

?>







